//
//  THHomeModel.m
//  THImageEditDemo
//
//  Created by 希达 on 2018/5/16.
//  Copyright © 2018年 Tan.huang. All rights reserved.
//

#import "THHomeModel.h"

@implementation THHomeModel
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.imgs = @[@"icon_0", @"icon_1", @"icon_2", @"icon_3", @"icon_4"];
        self.infoModels = [NSMutableArray array];
        for (int i = 0; i < 10; i ++) {
            THInfoModel *infoModel = [[THInfoModel alloc] init];
            infoModel.index = i + 1;
            [self.infoModels addObject:infoModel];
        }
    }
    return self;
}
@end

@implementation THInfoModel
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.title = [NSString stringWithFormat:@"这是第%d消息", arc4random_uniform(100)];
        self.time = [NSString stringWithFormat:@"%d", arc4random_uniform(1000000)];
    }
    return self;
}
@end
